var mongoose = require('mongoose');
const Schema = mongoose.Schema;

/*
 网页导出链接
 status 0 创建， 1 使用
 */
export const EmailSchema = new Schema({
    url: String,
    createTime: Date,
    status: Number
});


export const EmailModel = mongoose.model('emails_urls', EmailSchema);

// InUrlModel.on('index', (err) => {
//     if(err)console.log('OutUrlModel create index failure');
//     else console.log('OutUrlModel create index success');
// })